<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>公司介绍</title>
    <!--    <meta http-equiv="refresh" content="2;url=home.html">-->
    <link rel="stylesheet" href="../css/callus.css">
    <script src="../js/jquery-3.6.0.min.js"></script>
    <script src="../js/common.js"></script>
    <script src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=4AhSrY2MzHoPQbiI5G6c6dG8NDNGGT22"></script>
</head>
<body class="wanxi">
<div class="content">
    <div id="top"></div>
    <div class="middle">
        <div>
            <div class="title">联系我们</div>
            <div class="online">
                <div>
                    <div>
                        <div>
                            <div>
                                <div>品质至上，诚信为重，用心服务，以质量领先，我们真诚与您合作，
                                </div>
                                <div>竭诚为您服务!
                                </div>
                            </div>
                        </div>
                        <div>
                            Quality first, integrity oriented, hard service, leading technology, we sincerely cooperate
                            with you, for your dedicated service!

                        </div>
                    </div>
                </div>
                <div>
                    <div class="message">
                        <div id="container" class="container"></div>
                    </div>

                </div>
            </div>
        </div>
    </div>
    <div id="foot"></div>
</div>
</body>
</html>
<script>
    var map = new BMapGL.Map('container'); // 创建Map实例
    var point = new BMapGL.Point(104.066203,30.579326);//设置中心点坐标
    map.centerAndZoom(point, 18); // 初始化地图,设置中心点坐标和地图级别
    map.enableScrollWheelZoom(true); // 开启鼠标滚轮缩放

    var marker = new BMapGL.Marker(point);  // 创建标注
    map.addOverlay(marker);              // 将标注添加到地图中
    var opts = {
        width : 200,     // 信息窗口宽度
        height: 100,     // 信息窗口高度
        title : "故宫博物院" , // 信息窗口标题
        message:"这里是故宫"
    }
    var infoWindow = new BMapGL.InfoWindow("地址：北京市东城区王府井大街88号乐天银泰百货八层", opts);  // 创建信息窗口对象
    //添加监听事件
    marker.addEventListener("click", function(){
        map.openInfoWindow(infoWindow, point); //开启信息窗口
    });

    var menu = new BMapGL.ContextMenu();
    var txtMenuItem = [
        {
            text: '放大一级',
            callback: function () {
                map.zoomIn();
            }
        }, {
            text: '缩小一级',
            callback: function () {
                map.zoomOut();
            }
        }
    ];
    for (var i = 0; i < txtMenuItem.length; i++) {
        menu.addItem(new BMapGL.MenuItem(txtMenuItem[i].text, txtMenuItem[i].callback, 100));
    }
    map.addContextMenu(menu);
</script>